CSharpTest.Net
TryAdd Method
See Also  Send Feedback Download Help File
CSharpTest.Net.Library Assembly > CSharpTest.Net.Collections Namespace > IConcurrentDictionary<TKey,TValue> Interface : TryAdd Method

key
fnCreate

Glossary Item Box

Adds an element with the provided key and value to the IDictionary by calling the provided factory method to construct the value if the key is not already present in the collection.

Syntax

Visual Basic (Declaration) 
Function TryAdd( _
   ByVal key As TKey, _
   ByVal fnCreate As Converter(Of TKey,TValue) _
) As Boolean
C# 
bool TryAdd( 
   TKey key,
   Converter<TKey,TValue> fnCreate
)

Parameters

key
fnCreate

Requirements

Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7

See Also

Generated with Document! X 2011 by Innovasys